home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / Dim Text 3.0 / ⁄* changes *⁄.note next >
Encoding:
Text File  |  1995-12-03  |  1.9 KB  |  58 lines  |  [TEXT/CWIE]

  1. #if justacomment
  2.  
  3. 3.0
  4. ---
  5.  
  6. Changed from text bottleneck approach to event filter approach,
  7. and quit trying to be compatible with System 6.
  8.  
  9.  
  10. 2.1
  11. ---
  12.  
  13. In Gray_frame_draw_proc and Dim_text_proc, I had been using a string
  14. literal for the gray pattern.  This has a couple of disadvantages: One,
  15. I have been told that it can cause odd-address errors when used on a
  16. 68000 Mac.  Two, CodeWarrior does not use PC-relative string literals,
  17. so in a code resource, one would have to set up the A4 register.
  18.  
  19. In Dim_text_proc, save and restore the text mode.  This did not seem to
  20. be necessary in general, but I have a report that on an SE, failure to
  21. restore the text mode caused other items to be improperly grayed.
  22.  
  23. Added a Set_dim_data macro, to further encapsulate use of the refCon.
  24.  
  25.  
  26. 2.0
  27. ---
  28.  
  29. The linked list now contains only items that are dimmed, as opposed to
  30. items that could be dimmed.
  31.  
  32. The routines New_dimmables and Dispose_dimmables have been eliminated.
  33.  
  34. When an editable item is dim, draw its frame in true gray.
  35.  
  36.  
  37. v. 1.1 changes:
  38. ---------------
  39.  
  40. In the bottleneck proc, save and restore the pen state.  This is for
  41. compatibility with custom controls.
  42.  
  43. In the bottleneck proc, reset the clipping region when calling FrameRect.
  44. Previously, if the editText item contained more than could be displayed,
  45. then was dimmed, and then erased and updated, the frame was not drawn.
  46.  
  47. In Dim_text, after turning a dimmed item back to an editable text item,
  48. call SelIText( dp, item, 0, 0 );.  This was to fix this situation: Say
  49. you typed more into an edit field that could be displayed.  When the
  50. field was dimmed, part would disappear, because of the fact that static
  51. text is displayed with a different destRect. Then when the item was
  52. undimmed, the text that had disappeared did not come back.  Now, with
  53. the change, the text still disappears, but comes back.
  54.  
  55. Modified for universal headers.
  56.  
  57. #endif
  58.